<style>
.content-group {background:#fff;border-radius: 0.5rem;margin-bottom:0.39rem}
.fui-tab-scroll .item.on:before {background:linear-gradient(to right,rgba(99,190,114,1),rgba(99,190,114,0));}
.fui-goods-item .image .playbtn {
    background: rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9;
	padding-top:4rem;
    text-align: center;
    color: #fff;
}
</style>
<div ng-include="sys_html('common/_header','','','jy_weishop')"></div>
<div class="fui-page order-create-page fui-page-current" ng-if="pagedata.op == 'list'">
	<div class="fui-content">
		<div class="fui-cell-group fui-cell-click" style="margin-top: 0;margin-bottom:0.2rem">
			<div class="fui-searchbar bar" style="background:none;z-index: 0;">
					<div ng-class="{'searchbar':1,'searchbar-active':pagedata.searchbar ==1}" style="background:none">
							<div style="position: relative;left:0;top:0;">
								<div class="search-input" style="">
									<i id="searchsub" class="icon icon-sousuo1"  ng-click="tool.get_list('jy_weishop/video.index/getlist/',true)"></i>
									<input type="search" placeholder="搜索商品" class="search" ng-model="pagedata.params.keyword" style="text-align: left; color: #999; font-size:0.6rem;background:#f9f9f9;border-radius: 1rem;" />
								</div>
							</div>
					</div>
			</div>
			<div class="fui-tab-scroll" ng-if="pagedata.groups.length>0">
				<div ng-class="{'item':1,'on':pagedata.params.groupid==0}" style="height:2rem;line-height:1.5rem"><a href="javascript:;" ng-click="pagedata.params.groupid=0;tool.get_list('jy_weishop/video.index/getlist/',true)">推荐</a></div>
				<div ng-repeat="tab in pagedata.groups" style="height:2rem;line-height:1.5rem" ng-class="{'item':1,'on':pagedata.params.groupid==tab.id}"><a href="javascript:;" ng-click="pagedata.params.groupid=tab.id;tool.get_list('jy_weishop/video.index/getlist/groupid='+tab.id,true)">{{tab.title}}</a></div>
			</div>
		</div>
		<div ng-if="pagedata.list" class="fui-goods-group block">
			<div ng-repeat="item in pagedata.list" class="fui-goods-item">
				<div ng-click="access_json('jy_weishop/video.detail//id='+item.id)" ng-class="{'image':1, 'echelon':item.active.title}" data-text="{{item.active.title}}" style="position:relative;height:10rem;background-image: url({{tomedia(item.image) ||'../core/resource/images/nopic.jpg'}})">
					<div ng-show="item.total <=0" class="salez" style="background-image: url({{tomedia(pagedata.shopset.shop.saleout)}}); "></div>
					<div class="playbtn"><i class="icon icon-iconfontplay2" style="font-size:1.6rem;"></i></div>
				</div>
				<div ng-click="access_json('jy_weishop/video.detail//id='+item.id)"  class="detail" style="height:3.6rem">
					<a>
						<div class="name">
							{{item.title}}
						</div>
					</a>
					<div class="price" style="margin-top: 0.1rem">
						<span class="member"><img ng-repeat="m in item.members" ng-if="$index<=5" class="avatar" style="margin-right:-0.3rem" ng-src="{{tomedia(m.avatar) || '../core/resource/images/nopic.jpg'}}"></span>
						<span class="subtitle" style="font-weight:400"><i class="icon icon-good"></i> {{item.likes || 0}}</span>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('common/pluginnav',true)"></div>
<script>
scope.tool.get_list('jy_weishop/video.index/getlist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_weishop/video.index/getlist/');
}
</script>